<?php echo form_open('admin/users/form/'.$id); ?>
<div >
	<fieldset>
		<label for="ho_ten">Họ tên</label>
		<?php
		$data	= array('name'=>'ho_ten', 'value'=>set_value('ho_ten', $ho_ten));
		echo form_input($data);
		?>
		<label for="email">Email</label>
		<?php
		$data	= array('name'=>'email', 'value'=>set_value('email', $email));
		echo form_input($data);
		?>
		<label for="username">Username</label>
		<?php
		$data	= array('name'=>'username', 'value'=>set_value('username', $username));
		echo form_input($data);
		?>
		<label for="password">Password</label>
		<?php
		$data	= array('name'=>'password', 'value'=>set_value('password', $password), 'type'	=>	'password');
		echo form_input($data);
		?>
		<label for="role">Role</label>
		<?php
		$data	= array('admin'=>'Administrator', 'editor'=>'Editor', 'viewer'=>'Viewer');
		echo form_dropdown('role', $data, set_value('role', $role));
		?>
		<label for="status">Status</label>
		<?php
		$data	= array('1'=>'Active', '0'=>'Deactive');
		echo form_dropdown('status', $data, set_value('status', $status));
		?>
	</fieldset>		
	<button type="submit" class="btn btn-primary">Cập nhật</button>
</div>

</form>